<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>	
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/pages/login/css/main.css" />
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/pages/login/css/top_style.css" />
<script language="javascript" type="text/javascript"
	src="<%=request.getContextPath()%>/swordweb/core/jsimport/Sword.js"  bizJs="['/pages/biz/brand/brandWebXzdzForm.js']"></script>
<script language="javascript" type="text/javascript">
function a_onclick_submit(){
	$w("sub_tjsz").submit();
}
function SwordSubmit_onSuccess_sub_tjsz(req, res){
	if(res.getAttr("szflag") == "true"){
		alert("提交设置成功！");
	}else{
		alert("提交设置失败，请重试！");
	}
}
</script>
</head>
<body style="border-left: 1px solid #DDD9DA;">
	<div class="top_2">
		<div class="top_nav_list">
			<a>编辑店铺发票信息</a>
		</div>
	</div>
	<div align="center" style="margin-left:25px;margin-top:25px; margin-right: 25px;">
		<div sword="SwordForm" name="form_brandinvoice">
			<div name="cBrandId" type="hidden"></div>
			<table class="layout1" style="width:90%">
				<colgroup>
					<col width="20%" />
					<col width="80%" />
				</colgroup>
				<tr>
					<th colspan="2" class="title">
						发票信息
					</th>
		    	</tr>
				<tr style="display: none;">
					<th><SPAN class="must">*</SPAN>发票种类</th>
					<td>
						<div name="invoiceCategory" type="radio" defValue="1" rule="must">
						   <div code="1" caption="普通发票（个人）"></div>
						   <div code="2" caption="普通发票（电子）"></div>
						   <div code="3" caption="增值税发票"></div>
						</div>
					</td>
				</tr>	
				<tr>
					<th><SPAN class="must">*</SPAN>发票抬头类型</th>
					<td>
						<div name="invoiceTaitoulx" type="radio" defValue="1" rule="must">
						   <div code="1" caption="个人"></div>
						   <div code="2" caption="单位"></div>
						</div>
					</td>
				</tr>	
				<tr>
					<th><SPAN class="must">*</SPAN>填写抬头</th>
					<td>
						<div name="invoiceTaitou" type="text" defValue="填写抬头处" rule="must"></div>
					</td>
				</tr>	
				<tr style="display: none;">
					<th>发票内容</th>
					<td>
						<div name="invoiceContent" type="text"></div>
					</td>
				</tr>	
			</table>
			<table class="layout1" style="width:90%">
				<colgroup>
					<col width="20%" />
					<col width="80%" />
				</colgroup>
				<tr>
					<th colspan="2" class="title">
						收票人信息
					</th>
		    	</tr>	
				<tr>
					<th><SPAN class="must">*</SPAN>收票人姓名</th>
					<td>
						<div name="invoiceSprxm" type="text" rule="must"></div>
					</td>
				</tr>	
				<tr>
					<th><SPAN class="must">*</SPAN>收票人手机</th>
					<td>
						<div name="invoiceSprlxdh" type="text" rule="must_cellphone"></div>
					</td>
				</tr>	
				<tr>
					<th><SPAN class="must">*</SPAN>收票人地址</th>
					<td>
						<div name="invoiceSprdz" type="text" rule="must"></div>
					</td>
				</tr>	
				<tr>
					<th>收票人邮件</th>
					<td>
						<div name="invoiceSpremail" type="text"></div>
					</td>
				</tr>	
			</table>
			<div class="mar_center">
				<span class="fl_340 pad_bot"></span> <span class="pad_bot bot"><a onclick="a_onclick_submit()" style="cursor: pointer;width: 110px;">保存发票信息</a> </span>
			</div>
		</div>
	</div>
	<!-- 提交设置开始 -->
	<div sword="SwordSubmit" name="sub_tjsz" show="false" value="提交设置"
		tid="BrandInvoiceService_update" onSuccess="SwordSubmit_onSuccess_sub_tjsz()">
		<div widgetName="form_brandinvoice"></div>
	</div>
	<!-- 提交设置结束 -->
</body>
</html>